/**
 * gislin 2017年9月19日
 */
package com.bandit.orm.test;

import com.btcode.orm.model.generater.OracleGenerater;
import java.io.IOException;
import test.db.DBManager;

/**
 * @author gislin 2017年9月19日
 */
public class ModelGenerate {

    public void generate() throws IOException {

        String modelJavaPath = "E:/myWorkspaces/projectHub/btcode.orm/src/test/java/com/bandit/orm/relation/model";
        String modelPack = "com.bandit.orm.relation.model";

        OracleGenerater generater = new OracleGenerater(DBManager.getInstance().getDataExecuter());
        generater.generaterFile(modelPack, "TEST_BC_USER", modelJavaPath);
        generater.generaterFile(modelPack, "TEST_BC_ROLE", modelJavaPath);
        generater.generaterFile(modelPack, "TEST_BC_ORG", modelJavaPath);
        generater.generaterFile(modelPack, "TEST_BC_SITE", modelJavaPath);
        generater.generaterFile(modelPack, "TEST_BC_ROLE_USER", modelJavaPath);
        generater.generaterFile(modelPack, "TEST_BC_DICT_TYPE", modelJavaPath);
        generater.generaterFile(modelPack, "TEST_BC_DICT_DATA", modelJavaPath);
    }

}
